package com.zp.pattern.decorator;

public class SubDecorator2 extends Decorator {

	public SubDecorator2(Component component) {
		super(component);
	}
	
	@Override
	public void doSomething() {
		super.doSomething();
		this.eat();
	}
	
	public void eat(){
		System.out.println("功能C：具体装饰对象2：继承了Decorator");
	}
}
